package com.zdltech.lightappupdatelib.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * APP版本实体
 *
 * @ Des
 * @ Author jason
 */

public class AppVertionEntity implements Serializable {
    private String id = "";//'主键'
    private String appName = "";//'APP的名称',
    private long version;// '版本号-整数类型',
    private String versionName = "";//'版本号名称',
    private int lastForce;//'1是强制更新，0是非强制更新',
    private String appUnique = "";// 'APP唯一标识 android包名 ios bundleID',
    private String updateUrl = "";//'更新的url路径，对应更新类型字段',
    private String updateType = "web";//'更新类型\napk\\ipa\\web',
    private String fileMd5 = "";//'文件的MD5值\n文件校验时使用',
    private long fileSize;//文件的大小',
    private String updateInfo = "";//'版本更新描述',
    private int appStatus;//'APP审核状态\n1是审核中，2是审核过',
    private String platform = "";//平台\nandroid/ios',
    private int needUpdate;//`'1是需要更新，0是不更新  防止发错版本减少更新',
    private String remark = "";// '备注',
    private String ext = "";//'扩展',
    private Date createDate =new Date();// 创建日期 时间戳
    private Date updateDate  = new Date();//update_date 更新日期
    private boolean mDismissNotificationProgress = false;//默认显示通知，true的时候下载不在通知兰提醒，可以理解为静默下载

    public boolean ismDismissNotificationProgress() {
        return mDismissNotificationProgress;
    }

    public void setmDismissNotificationProgress(boolean mDismissNotificationProgress) {
        this.mDismissNotificationProgress = mDismissNotificationProgress;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public int getLastForce() {
        return lastForce;
    }

    public void setLastForce(int lastForce) {
        this.lastForce = lastForce;
    }

    public String getAppUnique() {
        return appUnique;
    }

    public void setAppUnique(String appUnique) {
        this.appUnique = appUnique;
    }

    public String getUpdateUrl() {
        return updateUrl;
    }

    public void setUpdateUrl(String updateUrl) {
        this.updateUrl = updateUrl;
    }

    public String getUpdateType() {
        return updateType;
    }

    public void setUpdateType(String updateType) {
        this.updateType = updateType;
    }

    public String getFileMd5() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getUpdateInfo() {
        return updateInfo;
    }

    public void setUpdateInfo(String updateInfo) {
        this.updateInfo = updateInfo;
    }

    public int getAppStatus() {
        return appStatus;
    }

    public void setAppStatus(int appStatus) {
        this.appStatus = appStatus;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public int getNeedUpdate() {
        return needUpdate;
    }

    public void setNeedUpdate(int needUpdate) {
        this.needUpdate = needUpdate;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    @Override
    public String toString() {
        return "AppVersionEntity{" +
                "id='" + id + '\'' +
                ", appName='" + appName + '\'' +
                ", version=" + version +
                ", versionName='" + versionName + '\'' +
                ", lastForce=" + lastForce +
                ", appUnique='" + appUnique + '\'' +
                ", updateUrl='" + updateUrl + '\'' +
                ", updateType='" + updateType + '\'' +
                ", fileMd5='" + fileMd5 + '\'' +
                ", fileSize=" + fileSize +
                ", updateInfo='" + updateInfo + '\'' +
                ", appStatus=" + appStatus +
                ", platform='" + platform + '\'' +
                ", needUpdate=" + needUpdate +
                ", remark='" + remark + '\'' +
                ", ext='" + ext + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                '}';
    }
}
